<!DOCTYPE html>
<html lang='zh-CN'>
  <head>
    <title>二维码</title>
    <meta charset='utf-8' />
    <meta http-equiv='content-type' content='text/html;charset=utf-8' />
  </head>
  <body>
    <img id='img_qrcode' title='二维码' src='' style="border-color: red; border-style: solid; border-width: medium;" />
  </body>
</html>

<script type='text/javascript'>
  var _uri = 'http://127.0.0.1:3002/api/qrcode/get?param=';

  window.onload = function(){
    var _param = encodeURIComponent('https://www.foreworld.net/archive/?search=洪荒&ts='+ new Date().getTime());
    console.log(_param);
    document.getElementById('img_qrcode').src = _uri + _param;
  }
</script>
